Be stricter about signed/unsigned comparisons and conversions.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 23 Sep 2002 21:15:18 +0000 (21:15 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 23 Sep 2002 21:15:18 +0000 (21:15 +0000)
gpsbabel/mkshort.c
gpsbabel/psp.c

index 4fde0e11dd85bb9e951dd617440494721b78e80f..8b29731d321a27b0f2e640e287029f2d1298f754 100644 (file)
@@ -7,7 +7,7 @@
 static const char vowels[] = "aeiouAEIOU";
 
 #define DEFAULT_TARGET_LEN 8
-static int target_len = DEFAULT_TARGET_LEN;
+static unsigned int target_len = DEFAULT_TARGET_LEN;
 
 #define DEFAULT_BADCHARS "\"$.,'!-"
 static const char *badchars = DEFAULT_BADCHARS;
index 4c59e66fc7459c303886eb0c43a9d17f1d8f69d5..b616f734461b6518c1dfb27ac9436df3b9782753 100644 (file)
@@ -211,7 +211,7 @@ psp_wr_deinit(void)
 static void
 psp_read(void)
 {
-       unsigned char buff[MAXPSPSTRINGSIZE + 1];
+       char buff[MAXPSPSTRINGSIZE + 1];
        double radians;
        waypoint *wpt_tmp;
        int stringsize;
@@ -326,7 +326,7 @@ static void
 psp_waypt_pr(const waypoint *wpt)
 {
        double lon, lat;
-       unsigned char tbuf[64];
+       char tbuf[64];
        char c;
        int i;
        char *shortname;